package br.com.toscano.gobra.view;

import java.io.IOException;

import br.com.toscano.gobra.util.Util;
import br.gov.frameworkdemoiselle.stereotype.ViewController;

@ViewController
public class ObraRelatorioMB extends ObraListMB {

	private Long id;
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	private static final long serialVersionUID = 1L;
	
	public void imprimirTermoProvisorio() throws IOException {
		try{
			Util.downLoad("termoProvisorio.pdf");
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	public void imprimirTermoDefinitivo() throws IOException {
		try{
			Util.downLoad("termoDefinitivo.pdf");
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	public void imprimirDiarioObra() throws IOException {
		try{
			Util.downLoad("diario.xlsx");
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	public void imprimirOrdemServico() throws IOException {
		try{
			Util.downLoad("os.pdf");
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	public void imprimirFichaObra() throws IOException {
		try{
			Util.downLoad("ficha.pdf");
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	public void imprimirPlanilhaOrcamentaria() throws IOException {
		try{
			Util.downLoad("planilha.pdf");
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	public void imprimirCronogramaInicial() throws IOException {
		try{
			Util.downLoad("cronogramaInicial.pdf");
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	public void imprimirCronogramaAtual() throws IOException {
		try{
			Util.downLoad("cronogramaAtual.pdf");
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	public void imprimirCronogramaFisicoFinanceiro() throws IOException {
		try{
			Util.downLoad("cronogramaFF.pdf");
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	public void imprimirMapaDemonstrativo() throws IOException {
		try{
			Util.downLoad("mapa.pdf");
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}